package com.techfort.testguice;

import java.net.URLEncoder;

public class QueryBuilder {
	private StringBuilder query;
	public QueryBuilder(String url){
		query = new StringBuilder(url);
	}
	
	public void addKeyword(String keyword){
		query.append("&simple="+ URLEncoder.encode(keyword));
	}
	public void addGenre(String genre){
		query.append("&genre="+URLEncoder.encode(genre));
	}
	public void addLimit(int limit){
		query.append("&limit="+limit);
	}
	public void addLanguage(String language){
		query.append("&language="+URLEncoder.encode(language));
	}
	public String getQuery(){
		return query.toString();
	}
}
